Don't react to clicks in content
authorMatthias Clasen <mclasen@redhat.com>
Thu, 21 Mar 2013 18:01:33 +0000 (14:01 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 21 Mar 2013 22:07:21 +0000 (18:07 -0400)
This breaks way too many things, and we explicitly trigger
drags from menubars and toolbars, where we want it.

gtk/gtkwindow.c

index 3be097dff6768385418beb4f619c85134b3c8a6d..d82b19e4e0d294547c935501e13534b0bc1c139b 100644 (file)
@@ -6930,8 +6930,10 @@ gtk_window_button_press_event (GtkWidget      *widget,
             {
               switch (region)
                 {
-                case GTK_WINDOW_REGION_TITLE:
                 case GTK_WINDOW_REGION_CONTENT:
+                  /* do nothing */
+                  break;
+                case GTK_WINDOW_REGION_TITLE:
                 case GTK_WINDOW_REGION_EDGE:
                    gdk_window_begin_move_drag_for_device (gdk_window,
                                                           gdk_event_get_device ((GdkEvent *) event),